import { Input, InputProps } from 'antd';

type Props = Omit<InputProps, 'onChange'> & {
  onChange?: (value: string) => void;
};

const DxInput: React.FC<Props> = ({ onChange = () => {}, ...props }) => {
  return <Input {...props} onChange={(e) => onChange(e.target.value)} />;
};

export default DxInput;
